html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.waterfall-box {
    width: 162px;
    height: 48px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.waterfall-button {
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    outline: none;
    background-color: transparent;
    border: 2px solid var(--color-0);
    color: var(--color-0);
    position: absolute;
    padding: 0;
    cursor: pointer;
    z-index: 1;
    transition: all 0.24s linear;
    box-sizing: border-box;
}

.waterfall-bg {
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    background-color: transparent;
    position: absolute;
    left: -2px;
    overflow: hidden;
    cursor: pointer;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.32s linear;
}

.waterfall-text {
    cursor: pointer;
    writing-mode: vertical-lr;
    letter-spacing: 2px;
    font-size: 12px;
    line-height: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    animation: roll 2.5s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes roll {
    0% {
        transform: rotate(180deg) translateY(0%);
    }

    100% {
        transform: rotate(180deg) translateY(-150%);
    }
}

.waterfall-box:hover .waterfall-button {
    text-shadow: 0 2px 0 var(--color-1);
    box-shadow: 2px 2px 0 var(--color-1), -2px -2px 0 var(--color-2);
}

.waterfall-box:hover .waterfall-bg {
    opacity: 1;
    background-color: #000;
}